import request from '@/utils/request'

// api地址
const api = {
  list: 'points.mall.goods/list',
  detail: 'points.mall.goods/detail',
  poster: 'points.mall.goods/poster'
}

// 积分商品列表
export function list(param, option) {
  return request.get(api.list, param, option)
}

// 积分商品详情
export const detail = (pmGoodsId, param) => {
  return request.get(api.detail, { pmGoodsId, ...param })
}

// 生成商品海报
export const poster = param => {
  return request.get(api.poster, param)
}
